<?php
    Configure::write('debug', 0);

    App::import('Vendor', 'fpdf/user');
    $pdf_gen = new PDF_User();

//	print_r($pdf_structure);
//    foreach(array_keys($pdf_structure) as $key){

      $pdf_gen->AddPage();
      $detail = $pdf_structure[0];
//      print_r($detail);
      $pdf_gen->Logo = 'img/graphics/'.$detail['icon']; 
      $pdf_gen->addUser($detail);
//
//    }  

    $pdf_gen->Output();
    return;

?>
